import 'recommend.dart';

// 种类请求序列化数据
class CateSerializedGen {
  List<VideoInfo> videoList;

  CateSerializedGen({this.videoList});

  CateSerializedGen.fromJson(Map<String, dynamic> json) {
    if (json['videoList'] != null) {
      videoList = <VideoInfo>[];
      json['videoList'].forEach((v) {
        videoList.add(new VideoInfo.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.videoList != null) {
      data['videoList'] = this.videoList.map((v) => v.toJson()).toList();
    }
    return data;
  }
}